<table class="answer_name">
	<tr><th style="text-align:left;"><%=t('question.options')%></th></tr> <br>
	
	<%@answers.each do|answer|%>
		<tr>
			<td>
				<%= fields_for "answer[]", answer do |answer_fields| %>
					<%= check_box_tag "is_answer[]", answer.id, answer.is_answer==1 ? true : false, :style=>"float:left; margin-right:5px; margin-top:3px;", :class=>"mtie7" %>
					<%= answer_fields.hidden_field :id %>
					<%= answer_fields.text_field :name,:style=>"width:115px; height:19px; border:#d1d1d1 1px solid; margin-right:10px; float:left;",:class=>"validate[required,funcCall[checkHELLO]] text-input"%>
				<%end%>
				<%= hidden_field_tag('seen[]', answer.id) %>
				
				<%=link_to image_tag("cross.jpg", :alt=>"Add Option"), {:action=>"delete_option",:controller=>"questions",:id=>answer.id,:question_id=>@question.id}, :confirm => t('json_message.are_you_sure')%><br>
			</td>
		</tr>
	<%end%>
			
</table>